package com.pubinfo.passbook.data.service;

import com.mashape.unirest.http.exceptions.UnirestException;
import com.pubinfo.passbook.common.model.bo.valueAddedTax.InputParamBody;
import com.pubinfo.passbook.common.model.bo.valueAddedTax.OutParamItem;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.util.Date;

@Service
public interface SynWriteoffInfoService {
    /**
     *
     * 同步报账单信息
     * @param inputParamBody
     * @return
     * @throws UnirestException
     */
    Boolean synWriteoffInfo(InputParamBody inputParamBody) throws UnirestException;

    /**
     * 将所有状态为-4或2的报账单更新
     * @return
     * @throws UnirestException
     */
    Boolean updateWriteoffInfo() throws UnirestException;

    /**
     * 同步一段时间内的报账单信息
     * @return
     * @throws UnirestException
     */
    Boolean synWriteoffInfoList(Date startTime, Date endTime) throws UnirestException, ParseException;

    /**
     * 同步前一天的数据
     * @return
     * @throws UnirestException
     */
    Boolean synYesterdayWriteoffInfo() throws UnirestException;

    void claimFeedback();

    void claimFeedbackByWriteoffInstanceCode(String writeoffInstanceCode);
}
